<div class="recipes form">
<?php echo $this->ExtendedForm->create('Recipe', array('class' => 'form-horizontal', 'novalidate' => 'novalidate'));?>
    <fieldset>
        <legend><?php echo __d('admin', 'Edit Recipe'); ?></legend>
        <div class="form-group row">
            <div class="col-sm-2">
                <label for="language">Language</label>
                <select name="language" id="language" class="form-control">
                    <option value="vietnam">VietNam</option>
                    <option value="english">English</option>
                </select>
            </div>
        </div>
	<?php
        if(isset($this->request->params['named']['recipe_id'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('recipe_id', array_merge(array('label' => __d('admin', 'Recipe'))));
		if(isset($this->request->params['named']['recipe_id'])) echo '</div>';
        
        if(isset($this->request->params['named']['recipe_category_id'])) echo '<div style="display: none;">';
        echo $this->ExtendedForm->input('recipe_category_id', array_merge(array('label' => __d('admin', 'Recipe Category')), array('options' => $recipeCategoriesSelect, 'empty' => '- ' . __d('admin', 'Choose Category') . ' -')));
        if(isset($this->request->params['named']['recipe_category_id'])) echo '</div>';

        if(isset($this->request->params['named']['image'])) echo '<div style="display: none;">';
        echo $this->ExtendedForm->input('image', array_merge(array('type' => 'image', 'label' => __d('admin', 'Image (size 255x327)'))));
        if(isset($this->request->params['named']['image'])) echo '</div>';

        ?>
    <div class="area-language" id="text-vietnam">
	<?php
        if(isset($this->request->params['named']['name'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('name', array_merge(array('label' => __d('admin', 'Name *'))));
		if(isset($this->request->params['named']['name'])) echo '</div>';
        
        if(isset($this->request->params['named']['description'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('description', array_merge(array('type' => 'textarea', 'label' => __d('admin', 'Description'), 'class' => 'form-control', 'div' => 'form-group row', 'before' => '<div class="col-sm-10">', 'after' => '</div>')));
		if(isset($this->request->params['named']['description'])) echo '</div>';
    ?>
    </div>
    <div class="area-language" id="text-english" style="display:none">
	<?php
        if(isset($this->request->params['named']['name_en'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('name_en', array_merge(array('label' => __d('admin', 'Name En'))));
		if(isset($this->request->params['named']['name_en'])) echo '</div>';
        
        if(isset($this->request->params['named']['description_en'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('description_en', array_merge(array('type' => 'textarea', 'label' => __d('admin', 'Description'), 'class' => 'form-control', 'div' => 'form-group row', 'before' => '<div class="col-sm-10">', 'after' => '</div>')));
		if(isset($this->request->params['named']['description_en'])) echo '</div>';
    ?>
    </div>
    <?php        
        if(isset($this->request->params['named']['recipe_for'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('recipe_for', array_merge(array('label' => __d('admin', 'Recipe For'))));
		if(isset($this->request->params['named']['recipe_for'])) echo '</div>';
        
        if(isset($this->request->params['named']['created_by'])) echo '<div style="display: none;">';
        echo $this->ExtendedForm->input('created_by', array_merge(array('label' => __d('admin', 'Created By'))));
        if(isset($this->request->params['named']['created_by'])) echo '</div>';
        
        if(isset($this->request->params['named']['relation'])) echo '<div style="display: none;">';
        echo $this->ExtendedForm->input('relation', array_merge(array('label' => __d('admin', 'Relation'))));
        if(isset($this->request->params['named']['relation'])) echo '</div>';
 
		//echo $this->element('AdminRecipes/add_vn');
	?>
    </fieldset>
<?php echo $this->ExtendedForm->end(array('label' => __d('admin', 'Save Recipe'), 'class' => 'btn btn-primary', 'div' => false, 'before' => '<div class="control-group"><div class="controls">', 'after' => "\n" . $this->Html->link(__d('admin', 'Cancel'), $redirectUrl, array('class' => 'btn btn-default')) . '</div></div>'));?>
</div>
<?php //echo $this->element('AdminRecipes/recipe_js');?>